/**
 * @description 接口服务
 * @author generate by qdp-cli 0.1.11
 * @date 2020-6-3 11:12:22
 * @version 1.0
 */

/* eslint no-trailing-spaces:0 */
/* eslint no-unused-vars:0 */
import { Requester } from "_/support";
import settings from '@/settings';
import mock from './mock'

const { webapi } = settings;
const { GET, POST } = Requester({
  baseURL: webapi.baseURL || '/',
  timeout: webapi.timeout || 0
}, mock);

export default {

  accountLogin: (state, params) => POST('passport/login', params),
  accountLogout: (state) => POST('passport/logout'),
  accountValidate: (state, params) => POST("passport/validate", params)

}
